package com.sgb.kjwl.model.entity.request;

import java.util.List;

/**
 * @author qiangHeNoooo
 * 说明：商品核对订单模块--提交订单
 * 时间：2021.04.27
 */
public class SubmitGoodsOrderEntity {

    /**
     * address : 968
     * invoice : 347
     * list : [{"list":[{"promote":false,"count":1,"skuId":"1384794767766065152","id":2365}],"paymentMethod":0,"supplier":"201909024695838","otherInfo":{"loading":0,"otherInfo":"","purchasingMethod":1,"receivingMethod":0,"transport":1,"unloading":0}}]
     */

    private int address;
    private int invoice;
    private String comNo;
    private List<ListItem> list;

    public String getComNo() {
        return comNo;
    }

    public void setComNo(String comNo) {
        this.comNo = comNo;
    }

    public int getAddress() {
        return address;
    }

    public void setAddress(int address) {
        this.address = address;
    }

    public int getInvoice() {
        return invoice;
    }

    public void setInvoice(int invoice) {
        this.invoice = invoice;
    }

    public List<ListItem> getList() {
        return list;
    }

    public void setList(List<ListItem> list) {
        this.list = list;
    }

    public static class ListItem {
        /**
         * list : [{"promote":false,"count":1,"skuId":"1384794767766065152","id":2365}]
         * paymentMethod : 0
         * supplier : 201909024695838
         * payBatch :1 //订单支付批次  默认1为全款 其他为分批支付
         * otherInfo : {"loading":0,"otherInfo":"","purchasingMethod":1,"receivingMethod":0,"transport":1,"unloading":0}
         */

        private List<ListItem.ListDTO> list;
        private int paymentMethod;
        private String payRatio;
        private String supplier;
        private ListItem.OtherInfo otherInfo;
        private String showPurchasingMethod;

        public List<ListItem.ListDTO> getList() {
            return list;
        }

        public void setList(List<ListItem.ListDTO> list) {
            this.list = list;
        }

        public int getPaymentMethod() {
            return paymentMethod;
        }

        public void setPaymentMethod(int paymentMethod) {
            this.paymentMethod = paymentMethod;
        }

        public String getPayBatch() {
            return payRatio;
        }

        public void setPayBatch(String payBatch) {
            this.payRatio = payBatch;
        }

        public String getSupplier() {
            return supplier;
        }

        public void setSupplier(String supplier) {
            this.supplier = supplier;
        }

        public OtherInfo getOtherInfo() {
            return otherInfo;
        }

        public void setOtherInfo(OtherInfo otherInfo) {
            this.otherInfo = otherInfo;
        }

        public String getShowPurchasingMethod() {
            return showPurchasingMethod;
        }

        public void setShowPurchasingMethod(String showPurchasingMethod) {
            this.showPurchasingMethod = showPurchasingMethod;
        }

        public static class OtherInfo {
            /**
             * loading : 0
             * otherInfo :
             * purchasingMethod : 1
             * receivingMethod : 0
             * transport : 1
             * unloading : 0
             */

            private int loading;
            private String otherInfo;
            private int purchasingMethod;
            private int receivingMethod;
            private int transport;
            private int unloading;
            private int installService;

            public int getLoading() {
                return loading;
            }

            public void setLoading(int loading) {
                this.loading = loading;
            }

            public String getOtherInfo() {
                return otherInfo;
            }

            public void setOtherInfo(String otherInfo) {
                this.otherInfo = otherInfo;
            }

            public int getPurchasingMethod() {
                return purchasingMethod;
            }

            public void setPurchasingMethod(int purchasingMethod) {
                this.purchasingMethod = purchasingMethod;
            }

            public int getReceivingMethod() {
                return receivingMethod;
            }

            public void setReceivingMethod(int receivingMethod) {
                this.receivingMethod = receivingMethod;
            }

            public int getTransport() {
                return transport;
            }

            public void setTransport(int transport) {
                this.transport = transport;
            }

            public int getUnloading() {
                return unloading;
            }

            public void setUnloading(int unloading) {
                this.unloading = unloading;
            }

            public int getInstallService() {
                return installService;
            }

            public void setInstallService(int installService) {
                this.installService = installService;
            }
        }

        public static class ListDTO {
            /**
             * promote : false
             * count : 1
             * money :0.1最优价格
             * skuId : 1384794767766065152
             * id : 2365
             */

            private boolean promote;
            private double count;
            private double money;
            private String skuId;
            private int id;
            private int choosePriceType;
            private int commodityId;

            public int getCommodityId() {
                return commodityId;
            }

            public void setCommodityId(int commodityId) {
                this.commodityId = commodityId;
            }

            public int getChoosePriceType() {
                return choosePriceType;
            }

            public void setChoosePriceType(int choosePriceType) {
                this.choosePriceType = choosePriceType;
            }

            public boolean isPromote() {
                return promote;
            }

            public void setPromote(boolean promote) {
                this.promote = promote;
            }

            public double getCount() {
                return count;
            }

            public void setCount(double count) {
                this.count = count;
            }

            public double getMoney() {
                return money;
            }

            public void setMoney(double money) {
                this.money = money;
            }

            public String getSkuId() {
                return skuId;
            }

            public void setSkuId(String skuId) {
                this.skuId = skuId;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }
    }
}
